package edu.zju.gis.dbfg.fileserver.model.vo;

import edu.zju.gis.dbfg.fileserver.model.LoaderMonitor;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class MonitorInfo {
    private String id;
    private String datasetname;
    private Date createtime;
    private Integer successnumb;
    private String status;
    private Integer errornumb;

    public MonitorInfo(LoaderMonitor monitor) {
        this.id = monitor.getId();
        this.datasetname = monitor.getDatasetname();
        this.createtime = monitor.getCreatetime();
        this.successnumb = monitor.getSuccessnumb();
        this.status = monitor.getStatus();
        this.errornumb = monitor.getErrornumb();
    }
}
